package pluginUtils;

public class Vector3D extends Pos3D {

	public Vector3D(double x, double y, double z) {
		super(x, y, z);
		
	}

	public Vector3D(Pos3D X) {
		super(X);
		
	}
	
	public static Vector3D add(Vector3D v1,Vector3D v2){
		double xx=v1.getX()+v2.getX(); 
		double yy=v1.getY()+v2.getY(); 
		double zz=v1.getZ()+v2.getZ(); 
		return new Vector3D(xx,yy,zz); 
	}
	
	public static Vector3D mul(Vector3D v1,double a){
		return new Vector3D(v1.x*a,v1.y*a,v1.z*a); 
	}
}
